﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AviumX.AviumCore.Screen.Graphics
{
    class InteScreen
    {
        //Makes up an InteScreen
        public uint[] ScreenDat;
        public int Height;
        public int Width;

        //Creating a InteScreen. (A frame that covers the screen for the Buffer.
        public InteScreen(int width, int height)
        {
            this.Width = width;
            this.Height = height;
            this.ScreenDat = new uint[(Height + 1) * (Width + 1)];
        }
        public InteScreen(uint width, uint height)
        {
            this.Width = (int)width;
            this.Height = (int)height;
            this.ScreenDat = new uint[(this.Height + 1) * (this.Width + 1)];
        }
        InteScreen()
        {
            this.Width = 0;
            this.Height = 0;
            this.ScreenDat = new uint[(this.Height + 1) * (this.Width + 1)];
        }

        //Getting Pixels DONT CHANGE WILL BREAK BUFFER + SCREEN.
        public uint GetPixel(uint n)
        {
            return this.ScreenDat[n];
        }
        public int GetPixel(int n)
        {
            return (int)this.ScreenDat[n];
        }
        public void SetPixel(uint c, uint n)
        {
            this.ScreenDat[n] = c;
        }
        public void SetPixel(int c, int n)
        {
            this.ScreenDat[n] = (uint)c;
        }
    }
}
